import 'package:plugin_platform_interface/plugin_platform_interface.dart';

import 'ios_microphone_permission_method_channel.dart';

abstract class IosMicrophonePermissionPlatform extends PlatformInterface {
  /// Constructs a IosMicrophonePermissionPlatform.
  IosMicrophonePermissionPlatform() : super(token: _token);

  static final Object _token = Object();

  static IosMicrophonePermissionPlatform _instance =
      MethodChannelIosMicrophonePermission();

  /// The default instance of [IosMicrophonePermissionPlatform] to use.
  ///
  /// Defaults to [MethodChannelIosMicrophonePermission].
  static IosMicrophonePermissionPlatform get instance => _instance;

  /// Platform-specific implementations should set this with their own
  /// platform-specific class that extends [IosMicrophonePermissionPlatform] when
  /// they register themselves.
  static set instance(IosMicrophonePermissionPlatform instance) {
    PlatformInterface.verifyToken(instance, _token);
    _instance = instance;
  }

  Future<int> getMicrophonePermission() {
    throw UnimplementedError(
        'getMicrophonePermission() has not been implemented.');
  }

  Future<bool> requestMicrophonePermission() {
    throw UnimplementedError(
        'requestMicrophonePermission() has not been implemented.');
  }
}
